Repository navigation
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Agent note — task 17236 (lane any-b): PR #8283 closed as superseded by PR #8326 — nothing unique to salvage
Evidence (all fresh this shift):
Closing this PR as superseded (not merged). |
Summary
Implements #7646, contract points M1/M2 of the #6060 decision record (one embedding model for every Atlas tier):
atlas_manifestgains anembedding_modelkey.Manifestparsing carries it (Manifest::embedding_model), and the identity is carried onShardInfoso fan-out can prove the scanned set is single-model.probevalidates the model next to the existingmetriccheck, with the same strict/lenient posture: a shard whoseembedding_modelis missing, or differs from the query model, is refused with an error naming the shard and both model ids; in lenient mode it is recorded as aRejectioninstead. The query model is the mandated one — queries are embedded through atlas-embed withtypes::DEFAULT_MODEL(Snowflake/snowflake-arctic-embed-m-v2.0).fanout_scanre-checks the selected set before merging: any shard without a model identity, or a set mixing identities, fails loud and never merges partially.merge_top_kis unchanged (M3).embedding_modelkey, mirroring the backfill existing shards receive. No production manifest writer lives in this repo; external shard builders write the key at build time and pre-M1 shards are refused (strict) with the missing-key error above rather than being silently trusted.Evidence
cargo test -p atlas-core --test shards— 14/14 pass, including three new tests: manifest round-trip carries the key; a divergent-model shard aborts strict discovery with an error naming the shard and both ids and is rejected in lenient mode; a missing-key shard aborts strict discovery and is rejected in lenient mode. The existing fan-out/oracle tests pass with the backfilled fixtures (uniform-model fan-out succeeds).cargo test -p atlas-core --lib— 43/43 pass.cargo test -p atlas-search --test cli_parity— 11/11 pass.cargo fmt --check -p atlas-core— diffs only in pre-existing untouched files (src/local.rs, src/turso.rs); the files this PR touches are clean.Merge Danger
Door: two-way
Blast Radius: narrow — atlas-core shard discovery/fan-out validation plus test fixtures. One deliberate behaviour change: shards without an
embedding_modelkey, or with a divergent one, no longer scan in strict mode (that refusal is the M1 contract).Fixes #7646
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.